package cn.bgs.wjx.WjxMapper;

import cn.bgs.ActivityManagement.pojo.Announcement;
import cn.bgs.ActivityManagement.pojo.MaintenanceProjects;
import cn.bgs.CommunityManagement.pojo.Community;
import cn.bgs.UserManagement.pojo.ComplaintsType;
import cn.bgs.UserManagement.pojo.File;
import cn.bgs.UserManagement.pojo.User;
import cn.bgs.wjx.pojo.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CommunityMapper {

    List<Community> Listcommunity();

    List<UserVo> ListUser(Integer id);

    List<UserVo> ListUserVo(@Param("id") Integer id,@Param("type") String type);

    List<TopUpVo> Lifepayhistory(@Param("id") Integer id, @Param("type") String type, @Param("start") String start, @Param("end") String end);

    List<MaintenanceVo> Maintenance(Integer id);

    MaintenanceProjects Projects(String theProjectName);

    int updateMaintenanceVo(MaintenanceVo maintenanceVo);

    int mainXqxg(Integer maintenanceId);

    List<AddmainListVo> AddmainList(Integer id);

    int GwbAddTeance(MaintenanceVo maintenanceVo);

    List<GwbActivityVo> GwbActivity(Integer id);

    List<GwbActivityVo> GwbActivity1(Integer id);

    ComplaintsType getType(String type);

    int GwbAddshenqing(GwbshenqingVo gwbshenqingVo);

    List<AnnouncementVo> All(Integer id);

    List<AnnouncementVo> All1(Integer id);

    int Zhuce(User user);

    void AddFile(File file);

    int Xguser(@Param("userid") Integer userid,@Param("balance") Double balance);

    int XgtopUp(UserVo uservo);
}
